<!-- 富文本编辑器 -->
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/ueditor.all.js"> </script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/vendor/plugins/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/js/ajaxfileupload.js"></script>
<style type="text/css">
  .w240{width: 240px;}
  .sml-240{padding-left: 240px;}
</style>


<div id="content" class="">
        <div class="row">
          <div class="col-md-12">
            <!-- Input Fields -->
            <div class="panel">
              <div class="panel-heading">
                <?php  
                  if($ac == 1){
                     $acname  = '新增模型栏目';  
                     $posturl =  U('Model/doaddmodel');
                  }else if($ac==2){
                     $acname  = '修改模型栏目';  
                     $posturl =  U('Model/doupdatemodel');
                  }
                ?>
                <span class="panel-title">新增模型栏目</span>
              </div>
              <div class="admin-form theme-primary mw1000 center-block" style="padding-bottom: 175px; margin-top:30px;">
              <div class="panel heading-border panel-primary">
                <form method="post" action="{$posturl}"  >
                  <div class="panel-body bg-light">
                    <div class="section-divider mt20 mb40"><span> 信息项 </span></div>
                    <!-- .section-divider -->
                    <input type="hidden" value="{$data['mid']}" name="mid">
                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="title" id="title" class="gui-input" placeholder="此处输入标题：必填" value="{$data['title']}">
                        </label>
                        <label  class="button btn-primary w240" >模型名称：</label>
                      </div>
                    </div>

                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="table" id="table" class="gui-input" placeholder="此处输入数据表名称：必填" value="{$data['table']}">
                        </label>
                        <label  class="button btn-primary w240" >模型表：</label>
                      </div>
                    </div>
                  
                    <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="act_add" id="act_add" class="gui-input" placeholder="此处输入页面文件名：必填" value="{$data['act_update']}">
                        </label>
                        <label  class="button btn-primary w240" >新增操作文件名：</label>
                      </div>
                    </div>

                     <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="act_update" id="act_update" class="gui-input" placeholder="此处输入页面文件名：必填" value="{$data['act_update']}">
                        </label>
                        <label  class="button btn-primary w240" >修改操作文件名：</label>
                      </div>
                    </div>

                     <div class="section">
                      <div class="smart-widget sm-left sml-240">
                        <label class="field prepend-icon ">
                          <input type="text" name="tpl" id="act_update" class="gui-input" placeholder="此处输入页面文件名：必填" value="{$data['tpl']}">
                        </label>
                        <label  class="button btn-primary w240" >前端模板名：</label>
                      </div>
                    </div>

                  
                     
                </div>
                   
                  <div class="panel-footer text-right">
                    <button type="submit" class="button btn-primary">提交</button>
                    <button type="reset" class="button btn-primary">清空</button>
                  </div>
                  <!-- end .form-footer section -->
                </form>

              </div>

            </div>
            </div>
          </div>
        </div>
</div>